def replace(a):
    # 输入的字符串倒置
    m = 0
    k = ""
    for i in a:
        m -= 1
        k += a[m]
    return k

str1 = input("请输入一个字符串数组")
s = replace(str1)
print(s)
